import os

def pair(args):
	for i in range(len(args)):
		yield (args[i], args[-i-1])

#agents
players = ['mobstabab', 'most', 'scoreab', 'smartscoremax', 'stabab', 'mobplusab', 'mobstab', 'stabmax', 'mostab', 'greedystab', 'smartscoreab', 'scoremax']

#othello commands
cmd=["othellosim -b %(p1)s -w %(p2)s -g 3 -t %(t)d -o %(o1)s"]

d = {'p1':'',
     'p2':'',
     't': 1000,
     'o1':"%(p1)s-Vs-%(p2)s-%(t)d.txt",
     'o2':"%(p2)s-Vs-%(p1)s-%(t)d.txt"}


for d['p1'], d['p2'] in pair(players):
	map(lambda l : os.system(l %d %d), cmd)